﻿// -----------------------------------------------------------------------
// <copyright file="WeakReference.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Proto
{
    using System;
    using System.Runtime.Serialization;
    
    public class WeakReference<T> : WeakReference
    {
        public WeakReference(object target)
            : base(target) { }

        public WeakReference(object target, bool track_resurrection)
            : base(target, track_resurrection) { }

        protected WeakReference(SerializationInfo info, StreamingContext context)
            : base(info, context) { }

        public new T Target
        {
            get { return (T)base.Target; }
            set { base.Target = value; }
        }
    }
}
